:root {
    --fontFamily: <%=fontFamily %>;
    --fontSize: <%=fontSize %>;
    --background: <%=background %>;
    --fontColor: <%=fontColor %>;
    --liHoverBackground: <%=liHoverBackground %>;
    --inputLineColor: <%=inputLineColor %>;
    --inputBgColor: <%=inputBgColor %>;
    --lineColor: <%=lineColor %>;
    --scrollbarColor: <%=scrollbarColor %>;
    --header-height: 28px;
    --header-gap: 8px;
    --header-gap-height: calc(var(--header-height) + var(--header-gap));
    --toolbar-height: 28px;
    --toolbar-gap: 8px;
    --toolbar-gap-height: calc(var(--toolbar-height) + var(--toolbar-gap));
    --content-height: calc(100vh - var(--header-gap-height));
}

body {
    margin: 0;
}

#app {
    height: 100vh;
    width: 100%;
}

#lepton-svgs {
    display: none;
}

.v-start {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
}

.h-start {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
}

.h-end {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
}

.h-start-center {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.h-between {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}
.h-between-center {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.p-3x2 {
    padding: 0.5rem 1rem;
}

.p-2x2 {
    padding: 0.5rem 0.5rem;
}

.fs-7 {
    font-size: 15px;
}
.fs-8 {
    font-size: 14px;
}
.fs-9 {
    font-size: 13px;
}

.fs-10 {
    font-size: 12px;
}

.w-char-4 {
    width: 6em;
}

.chart {
    width: 100%;
    height: 300px;
}

.header {
    height: var(--header-height);
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #e3f2fd;
    z-index: 10;
    font-size: 12px;
    border-radius: 3px;
}

.nav-item {
    white-space: nowrap;
    border: none;
    border-radius: 3px;
    user-select: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-weight: bold;
}

.toolbar {
    height: var(--toolbar-height);
}

.main {
    margin-top: var(--header-gap-height);
}

.content {
    height: var(--content-height);
    box-sizing: border-box;
}

.content-toolbarx1 {
    height: calc(var(--content-height) - var(--toolbar-gap-height) * 1);
    box-sizing: border-box;
}

.content-toolbarx2 {
    height: calc(var(--content-height) - var(--toolbar-gap-height) * 2);
    box-sizing: border-box;
}

.console {
    color: #e6db74;
    padding: 16px;
    background-color: #1e1f1c;
    border-radius: 3px;
}

.input-error {
    border: 1px solid #be1100 !important;
    animation: shake 0.2s;
    animation-timing-function: ease-in-out;
}

.required {
    color: #be1100;
}

input.input-error::placeholder {
    color: #be1100;
    opacity: 1;
}

input.input-error::-webkit-input-placeholder {
    color: #be1100;
}

input.input-error::-moz-placeholder {
    color: #be1100;
}

input.input-error:-ms-input-placeholder {
    color: #be1100;
}

input.input-error:-moz-placeholder {
    color: #be1100;
}

@keyframes shake {
    0% {
        transform: translate(1px, 0);
    }
    25% {
        transform: translate(-1px, 0);
    }
    50% {
        transform: translate(1px, 0);
    }
    75% {
        transform: translate(-1px, 0);
    }
    100% {
        transform: translate(0);
    }
}

.shake {
    animation: shake 0.2s;
    animation-timing-function: ease-in-out;
}

.clickable {
    cursor: pointer;
}

.bg-editor {
    background-color: beige;
}
.avatar {
    height: 30px;
    width: 30px;
    /* min-width: 30px;
    max-width: 30px; */
}

.avatar > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.title-text {
    font-weight: bold;
    font-size: 14px;
}

.description-text {
    font-size: 12px;
    color: #6d6d6d;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
    line-height: 1.5em;
    overflow-wrap: break-word;
}

.thing-item {
    background: aliceblue;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.content-no-header {
    height: var(--content-height);
}

.theme {
    background-color: var(--background);
    color: var(--fontColor);
    font-family: var(--fontFamily);
    font-size: var(--fontSize, 13px);
}

.font {
    font-family: var(--fontFamily);
    font-size: var(--fontSize);
}

.hover:hover {
    background-color: var(--liHoverBackground);
}

.no-theme-selected {
    background-color: #e0edd3 !important;
}

.selected {
    background-color: var(--liHoverBackground) !important;
}

.error {
    background-color: #5a1d1d;
    color: rgb(204, 204, 204);
    border: 1px solid #be1100;
}

.input-message {
    box-sizing: border-box;
    display: inline-block;
    font-size: 12px;
    line-height: 17px;
    margin-top: -1px;
    overflow: hidden;
    padding: 0.4em;
    text-align: left;
    width: 100%;
    word-wrap: break-word;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

.scrollbar:hover::-webkit-scrollbar-thumb {
    background: var(--scrollbarColor);
}

/* #region 按钮 */
.btn {
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
    white-space: nowrap;
    border: none;
    border-radius: 3px;
    user-select: none;
    cursor: pointer;
}

.btn-group {
    display: flex;
    gap: 0.25rem;
}

.btn-open {
    padding: 4px;
    border-radius: 2px;
}

.btn-text {
    cursor: pointer;
    background-color: inherit;
    border: none;
    text-wrap: nowrap;
    user-select: none;
}

/* #endregion */

/* #region 盒子 */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* #endregion */

/* #region 表格*/

.table {
    width: 100%;
    color: #212529;
    border-collapse: collapse !important;
}

.table-bordered {
    border: 1px solid #dee2e6;
}
.table-bordered td,
.table-bordered th {
    border: 1px solid #dee2e6;
}
.table-bordered thead td,
.table-bordered thead th {
    /* border-bottom-width: 2px; */
}

.table-column-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

th {
    user-select: none;
}

/* #endregion */

/* #region 用户 */

.cursor-pointer {
    cursor: pointer;
}

.user-select {
    user-select: all;
}
.user-select-none {
    user-select: none;
}

/* #endregion */

:root {
    --path1-color: blue;
    --path2-color: green;
}

.path1 {
    fill: var(--path1-color);
}

.path2 {
    fill: var(--path2-color);
}

.path1:hover {
    --path1-color: red;
}

.path2:hover {
    --path2-color: orange;
}

.success {
    color: greenyellow;
}

.bg-black {
    background-color: black;
}

.danger {
    color: #be1100;
}

.fs-inherit {
    font-size: inherit !important;
}

.bg-gray {
    background-color: #f0f0f0;
}

label {
    user-select: none;
}

.d-flex {
    display: flex;
}

.docker-compose {
    font-size: 14px;
    font-weight: bold;
    height: 100%;
    width: 100%;
}

.d-flex {
    display: flex;
}

.space-between {
    display: flex;
    justify-content: space-between;
}

.list-group {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    border-radius: 0.25rem;
    margin: 0;
}
.list-group-item-action {
    width: 100%;
    color: #495057;
    text-align: inherit;
}
.list-group-item-action:focus,
.list-group-item-action:hover {
    z-index: 1;
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
}
.list-group-item-action:active {
    color: #212529;
    background-color: #e9ecef;
}
.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}
.list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.list-group-item:last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}
.list-group-item.disabled,
.list-group-item:disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
}
.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.list-group-item + .list-group-item {
    border-top-width: 0;
}
.list-group-item + .list-group-item.active {
    margin-top: -1px;
    border-top-width: 1px;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.vh-100 {
    height: 100vh;
}
.max-vh-60 {
    max-height: 60vh;
}

.overflow-auto {
    overflow: auto;
}

.border-box {
    box-sizing: border-box;
}

.resize-none {
    resize: none;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.bg-light-3 {
    background-color: var(--bs-gray-300);
}

.tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 8px;
    grid-auto-flow: row dense;
}

textarea {
    margin: 0;
    padding: 8px;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
    overflow: auto;
    resize: vertical;
    height: auto;
    box-sizing: border-box;
    background-color: beige;
    outline: none;
    border: none;
    border-radius: 3px;
    width: 100%;
    white-space: nowrap;
}

textarea:focus {
    border-color: #80bdff;
    box-shadow: inset 0px 0 0 3px rgb(0 123 255 / 25%);
}

.form-control {
    display: block;
    width: 100%;
    height: 28px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    /* box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); */
}

.modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    transition: opacity 0.3s ease;
}

.modal-container {
    width: 300px;
    margin: auto;
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
    transition: all 0.3s ease;
}

.modal-header h3 {
    margin-top: 0;
    color: #42b983;
}

.modal-body {
    margin: 20px 0;
}

.modal-default-button {
    float: right;
}

.modal-enter-from {
    opacity: 0;
}

.modal-leave-to {
    opacity: 0;
}

.modal-enter-from .modal-container,
.modal-leave-to .modal-container {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.w-6 {
    width: 60px;
}

[v-cloak] {
    display: none;
}

.container-actions {
    padding-bottom: 8px;
}

.reconnect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000024;
    z-index: 9999;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reconnect-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.reconnect-text {
    font-size: 14px;
}

.reconnect-actions {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.reconnect-btn-connect {
    background-color: rgb(13, 110, 253);
    color: #fff !important;
    border: none;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 4px 8px;
}

.reconnect-btn-close {
    background-color: rgb(108, 117, 125);
    color: #fff !important;
    border: none;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 4px 8px;
}

.reconnect-text-extra {
    color: #dc3545;
    font-size: 13px;
}

[v-cloak] {
    display: none;
}
